﻿using System.Threading.Tasks;

namespace Dpx.Services {

    /// <summary>
    /// 内容页导航
    /// </summary>
    public interface IContentNavigationService {
        /// <summary>
        /// 导航
        /// </summary>
        /// <param name="pageKey">页面键</param>
        /// <returns></returns>
        Task NavigateToAsync(string pageKey);

        /// <summary>
        /// 导航。
        /// </summary>
        /// <param name="pageKey">页面键。</param>
        /// <param name="parameter">参数。</param>
        /// <returns></returns>
        Task NavigateToAsync(string pageKey, object parameter);
    }
}